home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2002 November / SGI IRIX Base Documentation 2002 November.iso / usr / share / catman / p_man / cat3 / MPI_Testany.z / MPI_Testany
Encoding:
Text File  |  2002-10-03  |  3.5 KB  |  133 lines

  1.  
  2.  
  3.  
  4. MMMMPPPPIIII____TTTTEEEESSSSTTTTAAAANNNNYYYY((((3333))))                                                  MMMMPPPPIIII____TTTTEEEESSSSTTTTAAAANNNNYYYY((((3333))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      MMMMPPPPIIII____TTTTeeeessssttttaaaannnnyyyy - Tests for completion of any previously initiated
  10.      communication
  11.  
  12. SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  13.      C:
  14.  
  15.           #include <mpi.h>
  16.  
  17.           int MPI_Testany( _c_o_u_n_t, _a_r_r_a_y__o_f__r_e_q_u_e_s_t_s, _i_n_d_e_x,
  18.           _f_l_a_g, _s_t_a_t_u_s )
  19.           int         _c_o_u_n_t;
  20.           MPI_Request _a_r_r_a_y__o_f__r_e_q_u_e_s_t_s[];
  21.           int         *_i_n_d_e_x, *_f_l_a_g;
  22.           MPI_Status  *_s_t_a_t_u_s;
  23.  
  24.  
  25.      C++:
  26.  
  27.           #include <mpi.h>
  28.  
  29.           static bool Request::Testany(
  30.           int               _c_o_u_n_t,
  31.           Request           _a_r_r_a_y__o_f__r_e_q_u_e_s_t_s[],
  32.           int&              _i_n_d_e_x)
  33.  
  34.  
  35.      Fortran:
  36.  
  37.           INCLUDE "mpif.h" (or USE MPI)
  38.  
  39.           LOGICAL _f_l_a_g
  40.           INTEGER _c_o_u_n_t, _a_r_r_a_y__o_f__r_e_q_u_e_s_t_s(*), _i_n_d_e_x,
  41.           _s_t_a_t_u_s(MPI_STATUS_SIZE), _i_e_r_r_o_r
  42.  
  43.           CALL MPI_TESTANY(_c_o_u_n_t, _a_r_r_a_y__o_f__r_e_q_u_e_s_t_s(*), _i_n_d_e_x, _f_l_a_g,
  44.           _s_t_a_t_u_s(MPI_STATUS_SIZE), _i_e_r_r_o_r)
  45.  
  46.  
  47. SSSSTTTTAAAANNNNDDDDAAAARRRRDDDDSSSS
  48.      This release implements the MPI 1.2 standard, as documented by the MPI
  49.      Forum in the spring 1997 release of _M_P_I:  _A _M_e_s_s_a_g_e _P_a_s_s_i_n_g _I_n_t_e_r_f_a_c_e
  50.      _S_t_a_n_d_a_r_d.
  51.  
  52. DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  53.      The MMMMPPPPIIII____TTTTeeeessssttttaaaannnnyyyy routine tests for completion of any previously initiated
  54.      communication.  This routine accepts the following parameters:
  55.  
  56.      _c_o_u_n_t     Specifies the list length (integer)
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70. MMMMPPPPIIII____TTTTEEEESSSSTTTTAAAANNNNYYYY((((3333))))                                                  MMMMPPPPIIII____TTTTEEEESSSSTTTTAAAANNNNYYYY((((3333))))
  71.  
  72.  
  73.  
  74.      _a_r_r_a_y__o_f__r_e_q_u_e_s_t_s
  75.                Specifies the array of requests (array of handles)
  76.  
  77.      _i_n_d_e_x     Returns the index of the operation that completed, or the value
  78.                of MMMMPPPPIIII____UUUUNNNNDDDDEEEEFFFFIIIINNNNEEEEDDDD if no operation completed (integer)
  79.  
  80.      _f_l_a_g      Returns a value of ttttrrrruuuueeee if one of the operations is complete
  81.                (logical)
  82.  
  83.      _s_t_a_t_u_s    Returns the status object (status)
  84.  
  85.      _i_e_r_r_o_r    Specifies the return code value for successful completion,
  86.                which is in MPI_SUCCESS.  MPI_SUCCESS is defined in the mmmmppppiiiiffff....hhhh
  87.                file.
  88.  
  89.  
  90.  
  91.  
  92.  
  93.  
  94.  
  95.  
  96.  
  97.  
  98.  
  99.  
  100.  
  101.  
  102.  
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.                                                                         PPPPaaaaggggeeee 2222
  130.  
  131.  
  132.  
  133.